package com.yunbao.project.basedata.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 商品单位
 * </p>
 *
 * @author 安能
 * @since 2019-09-19
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class GoodsUnit implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 单位名称
     */
    private String name;

    /**
     * 备注
     */
    private String remark;

    /**
     * 逻辑删除{0:删除,1:未删除}
     */
    @TableLogic
    private Integer deleted;

    /**
     * 状态{0:禁用,1:可用}
     */
    private Integer status;

    /**
     * 创建时间
     */
    private LocalDateTime createTime;


}
